package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmMaterialDto;
import com.heima.model.wemedia.pojos.WmMaterial;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface WmMaterialService extends IService<WmMaterial> {

    //上传图片
    ResponseResult upLoad(MultipartFile multipartFile) throws IOException;


    //查询素材列表
    ResponseResult materialList(WmMaterialDto dto);

    //收藏与取消收藏
    ResponseResult collection(Integer id,Integer isCollection);

    //删除文件
    ResponseResult delete(Integer id);


}
